<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2015/10/15
  Time: 15:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%--<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>--%>
<html>
<head>
    <title><s:if test="id == null">添加</s:if>
          <s:else>删除</s:else>
    </title>
</head>
<body>
  <s:if test="id == null"><h1>添加</h1></s:if>
  <s:else><h1>删除</h1></s:else>
  <form method="post" action="info_${id==null?'add':'edit'}">
    <%--<s:hidden name="id" value="%{id}"></s:hidden>--%>
    <%--<s:textfield name="name"></s:textfield><br/>--%>
    <%--<s:textfield name="age"></s:textfield><br/>--%>
    <input type="hidden" name="id" value="${id}">
    <input type="text" name="name" value="${name}">
    <input type="text" name="age" value="${age}">
    <button type="submit">提交</button>
  </form>
<s:debug></s:debug>
</body>
</html>
